<template>
  <!-- 平台字典管理 -->
  <div class="main">
    <div class="main_right_t_in">
      <!-- 搜索 -->
      <el-button
        type="primary"
        class="main_update"
        size="mini"
        plain
        @click="_cacheTypegroup"
        >更新</el-button
      >
    </div>
  </div>
</template>
<script>
//引入API
import {
  cacheTypegroup, //更新字典缓存
} from "@/api/TenantRoleManagement";
export default {
  methods: {
    // 更新字典缓存
    _cacheTypegroup(val) {
      cacheTypegroup()
        .then((res) => {
          this.$message({ type: "success", message: "更新字典缓存成功" });
        })
        .catch((error) => {
          this.$message({ type: "error", message: "更新字典缓存服务错误" });
        });
    },
  },
};
</script>
<style lang="scss" scoped>
.main {
  /deep/.el-table .cell {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .main_right_t_in {
    padding: 25px 55px;
  }
  .main_update {
    width: 80px;
    height: 30px;
  }
}
</style>
